package com.suzj.extraenchantments.enchant.Ench_02;

import com.suzj.extraenchantments.Config;

import com.suzj.extraenchantments.enchant.EquipmentSlotTypeSet;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.EnchantmentCategory;


public class EnchantmentDiligence extends Enchantment {
    public EnchantmentDiligence() {
        super(Enchantment.Rarity.UNCOMMON, EnchantmentCategory.BREAKABLE, EquipmentSlotTypeSet.ALL);
    }

    public boolean isTreasureOnly() {
        return true;
    }

    public int getMaxLevel() {
        if (((Boolean) Config.SERVER.isDiligence.get()).booleanValue()) {
            return 1;
        }
        return 0;
    }
}